//
//  Hello.cpp
//  L09OverLoad
//
//  Created by ai-nixs on 2017/10/29.
//  Copyright © 2017年 nixinsheng. All rights reserved.
//

#include "Hello.h"

void Hello::sayHello(){
    cout<<"Hello,JKXY."<<endl;
}

//void Hello::sayHello(char *name){
//    printf("Hello,%s\n",name);
//}

void Hello::sayHello(string name){
    string str="Hello,";
    str+=name;//字符串拼接
    cout<<str<<endl;
}
